package com.qyhl.module_home.city.bestone.ontype;


import com.qyhl.webtv.commonlib.entity.home.BestoneItemTypeBean;

import java.util.List;

public class BestoneTypePresenter implements BestoneTypeContract.BestoneTypePresenter {
    private BestoneTypeContract.BestoneTypeView view;
    private BestoneTypeContract.BestoneTypeModel model;

    public BestoneTypePresenter(BestoneTypeContract.BestoneTypeView view) {
        this.view = view;
        model = new BestoneTypeModel(this);
    }

    @Override
    public void getData(String typeId) {
        model.getData(typeId);
    }

    @Override
    public void getDataError(String msg) {
        view.getDataError(msg);
    }

    @Override
    public void getDataSuccess(List<BestoneItemTypeBean> data) {
        view.getDataSuccess(data);
    }
}
